package net.esj.basic.core.view.tools.browser;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractBrowserURLEncoder {

	abstract String encode(String str);
	
	static Map<String,AbstractBrowserURLEncoder> defaultEncoderMap;
	static{
		defaultEncoderMap = new HashMap<String, AbstractBrowserURLEncoder>();
		defaultEncoderMap.put("MSIE", DefaultMSIEURLEncoder.INSTANCE);
		defaultEncoderMap.put("Firefox", DefaultFirefoxURLEncoder.INSTANCE);
		defaultEncoderMap.put("Chrome", DefaultChromeURLEncoder.INSTANCE);
		defaultEncoderMap.put("Safari", DefaultSafariURLEncoder.INSTANCE);
	}
}
